package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.InfoHeaderItem;

import java.util.List;

public interface InfoHeaderItemManager {

    void saveOrUpdate(DataSourceKey key, InfoHeaderItem infoMapping);

    void saveOrUpdate(DataSourceKey key, List<InfoHeaderItem> infosMapping);

    List<InfoHeaderItem> getInfoHeaderItemByHeaderId(DataSourceKey key, long headerId);

    List<InfoHeaderItem> getOnlineInfoHeaderItemByInfoId(DataSourceKey key, long infoId);

    List<InfoHeaderItem> getAllInfoHeaderItemByInfoId(DataSourceKey key, long infoId);

    void removeInfoItems(DataSourceKey key, List<InfoHeaderItem> list);

    InfoHeaderItem get(DataSourceKey key, long headerId, long infoId);

}